int sumEven(int begin, int end){
    int sum = 0;
    for(int i = begin;i <= end; i++){
        if(!(i % 2))
            sum += i;
    }
    return sum;
}